package com.ming_za.odupdaterserver.core.service.res.obj;

import com.ming_za.odupdaterserver.core.sqlite.domain.Res;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Schema(description = "主版本对应的更新列表元素-v1.1")
@Getter
@Setter
public class MainUpdateItemV1_1 extends MainUpdateItem{

    @Schema(description = "资源类型,0->普通类型（默认）,1->MC Mod类型")
    private Integer type;

    @Schema(description = "附加数据")
    private String data;

    public MainUpdateItemV1_1(Res res) {
        super(res);
        this.type = res.getType();
        this.data = res.getData();
    }
}
